<!--# layout("/common/layout.html",{"jsBase":"/js/cms/coreAd/"}){ -->

<form class="layui-form layui-form-pane" id="addForm">
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">标题</label>
				<div class="layui-input-inline">
					<input type="text" name="title" class="layui-input"  lay-verify="required">
				</div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label">链接</label>
				<div class="layui-input-inline">
					<input type="text" name="url" class="layui-input" lay-verify="url">
				</div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <!-- 业务对象得有一个字段保存附件id，假设是attachmentId  -->
        <layui:attachment name="img" batchFileUUID="${uuid()}"  bizType="CoreAd" isNew="true"  />
    </div>
    <layui:submitButtons id="addButton" />
</form>
<!--#} -->
<script>
layui.use(['add'], function(){
    var coreAdAdd = layui.add
    coreAdAdd.init();
});
</script>
